package com.fruit.dao;

import com.fruit.model.ProductCategory;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * @Description:
 * @Author: LJ
 * @Date: 2018/10/26 10:38
 * @version:
 */
public interface ProductCategoryDao extends JpaRepository<ProductCategory, Integer> {
    List<ProductCategory> findByNameIn(@Param("name") String name);
}
